package com.xbongbong.schedule.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@ToString
@Getter
@Setter
public class ScheduleTaskRelateBusinessPOJO implements Serializable {

    private static final long serialVersionUID = -1661253096671940655L;

    /**
     * 数据id
     */
    private Long dataId;
    /**
     * 关联id
     */
    private Long refId;
    /**
     * 设置id
     */
    private Long setId;
    /**
     * 业务类型
     */
    @NotNull(message = "{constant.errorMessage.business_type_cannot_empty}")
    private Integer businessType;
    /**
     * Saas或者Paas业务区分
     */
    @NotNull(message = "{dto.msg.common.saasMark.NotNull}")
    private Integer saasMark;

    public ScheduleTaskRelateBusinessPOJO(Long dataId, Long refId, Long setId, Integer businessType, Integer saasMark) {
        this.dataId = dataId;
        this.refId = refId;
        this.setId = setId;
        this.businessType = businessType;
        this.saasMark = saasMark;
    }
}
